package com.css.apps.base.log.action;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

import com.css.webbase.webwork.action.AdminAction;
import com.opensymphony.xwork.Action;

/*
 * 显示chart的action
 * */
public class LogExChartAction extends AdminAction{
	
	private static final long serialVersionUID = 1L;
	private String exdate;
	private String extypes;
	private String exvalues;
	private String res = "success";
	
	@Override
	protected String adminGo() {
		//对中文参数进行解码
		try {
			extypes = URLDecoder.decode(extypes, "utf-8");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
			return Action.ERROR;
		}
		if(res.equals("chart")){
			return res;
		}
		return res;
	}

	public String getExdate() {
		return exdate;
	}

	public void setExdate(String exdate) {
		this.exdate = exdate;
	}

	public String getExtypes() {
		return extypes;
	}

	public void setExtypes(String extypes) {
		this.extypes = extypes;
	}

	public String getExvalues() {
		return exvalues;
	}

	public void setExvalues(String exvalues) {
		this.exvalues = exvalues;
	}

	public String getRes() {
		return res;
	}

	public void setRes(String res) {
		this.res = res;
	}
	
}
